<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	alert('添加成功！');
}else{
	alert('出错了，请重新尝试！');
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#form').ajaxForm(updateOptions); 
}); 
</script>
<div id="content">
<form id="form" action="{url('Collect','SaveEdit')}" method="post">
<h3 class="title">添加采集站点</h3>
<table class="admin-table">
<tr>
	<td><label for="site_name">网站名称：</label></td>
	<td>
	<input name="site_name" id="site_name" type="text" size="50" /><span etype='error_info' class="error_info" id="site_name_info"></span>
	</td>
</tr>
<tr>
	<td><label for="site_url">网站地址：</label></td>
	<td>
	<input name="site_url" id="site_url" type="text" size="50" /><span etype='error_info' class="error_info" id="site_url_info"></span>
	</td>
</tr>
<tr>
	<td></td>
	<td>
	<input id="btnAjaxSubmit" type="submit" value="保存" />&nbsp;&nbsp;<input  type="button" value="返回" onclick="history.back()" />
	</td>
</tr>
</table>
</div>